package jsyf.oa.facade.contract;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.List;

@Path("/receivableFacade")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface ReceivableFacade {
    @Path("/saveAvailable")
    String saveAvailable(String jsonData);
    @Path("/receivableRemind")
    Boolean receivableRemind();
    @Path("/receivableRemindYq")
    Boolean receivableRemindYq();

    @Path("/receivable")
    JSONObject receivable(String jsonData);
    @Path("/getUploadFileByContractId")
    JSONObject getUploadFileByContractId(String jsonData);
    @Path("/saveUploadFile")
    JSONObject saveUploadFile(String jsonData);
    @Path("/receivableSave")
    JSONObject receivableSave(String jsonData);

    //将快到期保存看是否逾期
    @Path("/saveOverByRepayment")
    JSONObject saveOverByRepayment();

    @Path("/selectContractAccountById")
    JSONObject selectContractAccountById(String jsonData);
    @Path("/interestLook")
    List<JSONObject> interestLook(String jsonData);
    @Path("/getInterestFreeListById")
    JSONObject getInterestFreeListById(String jsonData);
    @Path("/getInterestFreeById")
    JSONObject getInterestFreeById(String jsonData);
    @Path("/saveInterestFreeList")
    String saveInterestFreeList(String jsonData);
    @Path("/interestFreeApply")
    String interestFreeApply(String jsonData);
    @Path("/updateContractAccountMoney")
    JSONObject updateContractAccountMoney(String jsonData);
    @Path("/selectContract")
    JSONObject selectContractById(String jsonData);
    @Path("/exportContractAccountList")
    List<JSONObject> exportContractAccountList();
    @Path("/selectContractAccountList")
    JSONObject selectContractAccountList(String jsonData);
    @Path("/selectContractAccountListApp")
    JSONObject selectContractAccountListApp(String jsonData);
    @Path("/senderMessage")
    Boolean senderMessage(String mainId);
    @Path("/getRepaymentDate")
    List<JSONObject> getRepaymentDate();
    @Path("/senderExpire")
    Boolean senderExpire();
    @Path("/getRepaymentSender")
    JSONObject getRepaymentSender(String jsonData);
    @Path("/getAcountRepaymentListById")
    JSONObject getAcountRepaymentListById(String jsonData);
    @Path("/saveAcountRepaymentListById")
    JSONObject saveAcountRepaymentListById(String jsonData);
    @Path("/applyAudit")
    Boolean applyAudit(String jsonData);
}
